Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split godoc into separate packages #311

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Split godoc into separate packages #311

merged 2 commits into from
Nov 10, 2023

Conversation

ewanharris
Copy link
Contributor

🔧 Changes

This PR splits the godoc into the separate packages rather than having both the auth and management client documentation in the top level.

Some screenshots of the docs below

Auth0 package page

Screenshot 2023-11-10 at 10 46 27

Authentication package page

Screenshot 2023-11-10 at 10 46 39

Manangement package page

Screenshot 2023-11-10 at 10 49 44

If you want to view this locally then you can install godoc (go install golang.org/x/tools/cmd/godoc@latest) and then run godoc -http=:6060 in the repo. The documentation will be available on http://localhost:6060/pkg/github.com/auth0/go-auth0/

📚 References

Fixes #305 alongside the refactor

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (074738c) 94.82% compared to head (b2267f8) 94.82%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #311   +/-   ##
=======================================
  Coverage   94.82%   94.82%           
=======================================
  Files          46       46           
  Lines        8951     8951           
=======================================
  Hits         8488     8488           
  Misses        361      361           
  Partials      102      102           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// // handle err
// }
//
// [management client docs]: https://pkg.go.dev/github.com/auth0/go-auth0/management
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super thrilled about having to link to pkg.go.dev directly but I'm not sure the doc links support linking like I want to here (i.e to the top level docs)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a relative link work?

Screenshot 2023-11-10 at 13 36 29

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately not, we can't use HTML in the docs and the URL support only seems to support full URLs rather than relative.

authentication/doc.go Outdated Show resolved Hide resolved
doc.go Outdated Show resolved Hide resolved
management/doc.go Outdated Show resolved Hide resolved
management/doc.go Outdated Show resolved Hide resolved
@ewanharris ewanharris merged commit 824469a into main Nov 10, 2023
7 checks passed
@ewanharris ewanharris deleted the docs/improve-godoc branch November 10, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs do not explain how to paginate
3 participants